/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Converters;

import core.NetPaquet;

/**
 *
 * @author MOI
 */
public class PaquetConverter implements ApiConverter<Object, NetPaquet> {

    public Object convertB(NetPaquet element) {
       return element.getData();
    }

    public NetPaquet convertA(Object element) {
        NetPaquet N = new NetPaquet();
        N.setData(element);
        return N;
    }

}
